﻿@{
    <div class="comment_container">
        @if (Model.Comments != null)
        {
            @foreach (var item in Model!.Comments)
            {
                <div class="comment_item">
                    <p class="comment_header">
                        <span class="comment_name"><span class="comment_type">@item.ptype</span>@item.pname</span>

                        @if (!string.IsNullOrWhiteSpace(item.rname))
                        {
                            <span class="comment_reply_name"><span class="comment_type">@item.rtype</span>@item.rname</span>
                        }

                        <span class="comment_date">@item.cdate</span>
                    </p>
                    <div class="comment_content">
                        @item.content
                    </div>
                </div>

            }
        }

    </div>
}